﻿namespace QQTools.Core.Enums.SendGroupMessage
{
    /// <summary>
    /// 群发消息发送状态枚举
    /// 0.未开始, 1.进行中, 2.成功, 3.失败, 4.暂停
    /// </summary>
    public enum SendGroupMsgStatus
    {
        NotStarted = 0,
        Running = 1,
        Success = 2,
        Failed = 3,
        Paused = 4
    }


    public static class SendGroupMsgStatusExtensions
    {
        public static string ToChineseString(this SendGroupMsgStatus status)
        {
            switch (status)
            {
                case SendGroupMsgStatus.NotStarted:
                    return "-";
                case SendGroupMsgStatus.Success:
                    return "✔️";
                case SendGroupMsgStatus.Running:
                    return "⏳";
                case SendGroupMsgStatus.Failed:
                    return "❌";
                case SendGroupMsgStatus.Paused:
                    return "⏸";
                default:
                    return "未知";
            }
        }
    }
}
